package com.design.patterns.behavioralModel.factoryMethod.factory;

import com.design.patterns.behavioralModel.factoryMethod.factory.Impl.NumberFactoryImpl;

/**
 * 定义一个创建对象的接口,创建对象的工厂
 */
public interface NumberFactory {
    public int parse(String num);
    //获取真正的工厂方法
    static NumberFactory getInstance(){
        return impl;
    }
    static NumberFactory impl = new NumberFactoryImpl();
}
